.project-statistics {
  min-width: 1000px;
  width: auto;
  &-tabs {
    .next-tabs-tab.active {
      font-weight: 500;
    }
  }
  .aisc-wcontainer {
    padding: 0;
  }

  &-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    // box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: box-shadow 0.3s;
    border-radius: 8px;
    &:hover {
      box-shadow: var(--card-hover-shadow, 1px 1px 4px 0px rgba(0, 0, 0, 0.13));
    }
  }

  &-mr {
    margin-top: 20px;
    padding-bottom: 20px;
    &-overview {
      position: absolute;
      top: 127px;
      right: 40px;
      &-title {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        &-info {
          line-height: 24px;
          font-size: 14px;
          font-weight: 500;
        }
        &-time {
          display: flex;
          align-items: center;
          justify-content: space-between;

          .range {
            margin-left: 8px;
          }
        }
      }

      &-detail {
        margin-top: 20px;
        display: flow-root;
        .detail-item {
          float: left;
          width: 22%;
          margin-right: 4%;
          &:last-child {
            margin-right: 0;
          }
          .item-info {
            &-title {
              .number {
                font-weight: 500;
                font-size: 28px;
                color: $gray-08;
                letter-spacing: 0;
                line-height: 28px;
              }
              .unit {
                line-height: 18px;
                font-size: 12px;
                color: $gray-08;
                font-weight: 500;
                letter-spacing: 0;
                margin-left: 8px;
              }
              .item-info-tag {
                margin: 0 12px 0;
              }
            }
            &-desc {
              margin-top: 9px;
              text-align: left;
              line-height: 18px;
              font-size: 12px;
              color: $gray-06;
            }
          }
        }
      }
    }

    &-review {
      margin-top: 4px;
      &-chart {
        .title {
          text-align: left;
          line-height: 24px;
          font-weight: 500;
          font-size: 14px;
          color: $gray-08;
          .number {
            color: $primary-success;
          }
          .help {
            color: $gray-06;
            line-height: 24px;
            font-weight: normal;
            font-size: 14px;
          }
        }

        .chart-detail {
          margin-top: 20px;
        }
      }

      &-table {
        margin-top: 20px;
        .user-info-cell {
          display: flex;
          align-items: center;
          .avatar {
            margin-right: 8px;
            width: 26px;
            height: 26px;
            .avatar-known {
              border: 1px solid $gray-06;
              width: 26px;
              height: 26px;
              border-radius: 13px;
              text-align: center;
              line-height: 26px;
            }
            &.active::after {
              transform: scale(0.8);
              bottom: -6px;
              right: -6px;
            }
          }
        }
        .next-table-sort {
          top: 2px;
        }
      }
    }

    &-comment {
      margin-top: 20px;
      .title {
        text-align: left;
        line-height: 24px;
        font-weight: 500;
        font-size: 14px;
        color: $gray-08;
        .help {
          font-size: 12px;
          font-weight: normal;
          color: $gray-06;
        }
      }
      .chart-detail {
        margin-top: 20px;
      }
    }
  }

  &-commit {
    padding-bottom: 20px;

    &-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      &-left {
        display: flex;
        align-items: center;
        position: absolute;
        top: 127px;
        right: 40px;
        .#{$teamix-prefix}range-picker {
          width: 290px;
        }
      }
      &-label {
        font-size: 14px;
        color: $gray-08;
        margin-right: 12px;
        position: relative;
        top: 2px;
      }
    }

    &-overview {
      margin-top: 4px;
      &-title {
        line-height: 24px;
        font-weight: 500;
        font-size: 14px;
        color: $gray-08;
        display: flex;
        align-items: center;
      }
      &-desc {
        font-size: 14px;
        line-height: 20px;
        color: $gray-06;
        margin-top: 8px;
      }
      &-chart {
        margin-top: 20px;
      }
    }

    &-list {
      display: flow-root;
      &-item {
        float: left;
        width: calc(50% - 10px);
        margin-right: 20px;
        margin-top: 20px;
        &:nth-child(2n) {
          margin-right: 0;
        }

        .user-info {
          display: flex;
          justify-content: space-between;
          align-items: center;
          &-left {
            display: flex;
            justify-content: space-between;
            .avatar {
              margin-right: 12px;
            }

            .avatar-known {
              border: 1px solid $gray-06;
              width: 40px;
              height: 40px;
              border-radius: 20px;
              text-align: center;
              line-height: 40px;
            }

            .user {
              font-size: 16px;
              line-height: 24px;
              color: $gray-08;
              font-weight: 500;
            }
            .desc {
              margin-top: 4px;
              text-align: left;
              line-height: 12px;
              font-size: 12px;
              color: $gray-06;
            }
          }

          &-right {
            color: $gray-06;
            line-height: 12px;
            font-size: 12px;
          }
        }
        .chart {
          margin-top: 20px;
        }
      }
    }
    .add {
      color: #6dc37d;
      font-size: 12px;
      line-height: 12px;
    }
    .delete {
      color: #ee8b85;
      font-size: 12px;
      line-height: 12px;
      margin-left: 8px;
    }
  }

  .avatar {
    border-radius: 50%;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      vertical-align: top;
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
    &.active {
      border: 2px solid #e3a815;
      position: relative;
      &::after {
        position: absolute;
        content: '';
        width: 16px;
        height: 17px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-image: url(https://img.alicdn.com/tfs/TB1u7pMS7L0gK0jSZFAXXcA9pXa-48-52.png);
        bottom: -4px;
        right: -4px;
      }
    }
  }
}

.balloon-info-help {
  &-title {
    font-size: 14px;
    line-height: 28px;
    font-weight: 500;
  }
}

.insight-git-repo-tip {
  text-align: right;
  font-size: 12px;
  color: $gray-06;
  line-height: 20px;
  margin-right: 8px;
  .tip-icon {
    color: $border-warning;
  }
}

.insight-help-tip {
  margin-left: 12px;
  flex-shrink: 0;
  &-icon {
    color: $primary-brand;
    margin-right: 4px;
  }
  line-height: 20px;
  font-size: 14px;
  color: $gray-08;
}
.insight-help-footer {
  margin-top: 20px;
  text-align: right;
}

.insight-help-wrapper {
  display: flex;
  align-items: center;
  .update-time {
    flex-shrink: 0;
    font-size: 14px;
    color: $gray-06;
  }
}

.project-insight-entry {
  overflow: auto;
  margin: 0 -40px;
  .bg-img {
    margin: -50px auto 0;
    text-align: center;
    height: 493px;
    img {
      width: 798px;
    }
  }
  .teamix-result {
    margin-top: -22px;
    img {
      display: none;
    }
    .desc {
      line-height: 24px;
      width: 480px;
      margin-top: 16px;
    }
  }
}
